package com.southern.gateway.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Service;

@Service
public class PermissionServiceImpl implements IPermissionService {
	
	@Override
	public List<String> getPublicUrls() {
		
		/*
		 * if(!responseEntity.getStatusCode().equals(HttpStatus.OK)) { throw new
		 * RuntimeException("获取公共url信息失败:" + responseEntity.getStatusCode()); }
		 * 
		 * ResponseDto responseDto = responseEntity.getBody();
		 * if(responseDto.getIs_success() == false) { throw new
		 * RuntimeException("获取公共url信息失败::" + responseDto.getErr_code() +
		 * ",msg:"+responseDto.getErr_msg()); }
		 * 
		 * String srtJson = JsonUtil.getString(responseDto.getBody()); List<String> urls
		 * = JsonUtil.getObject(srtJson, List.class);
		 */
		List<String> urls = new ArrayList();
		urls.add("/");
		urls.add("/aiwriterweb/");
		urls.add("/sysapi/auth/**");
		urls.add("/aiwriterweb/**");

	
		return urls;
	}

	@Override
	public List<String> getPrivateUrls(String userId) {
		

		List<String> urls = new ArrayList();

	
		return urls;
	}

}
